using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Diagnostics;
using System.Net.Http;
using System.Threading;

namespace CenterControllerServer.UnitTestProject
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void ReadTest()
        {
            var newStart = Stopwatch.StartNew();
            var client = new HttpClient();

            for (int i = 0; i < 100; i++)
            {
                var result = client.GetAsync($"http://localhost:5000/SqlClient?key=Key{i+1}");
                result.Wait();
                //var strValue = result.Result.Content.ReadAsStringAsync();
                //strValue.Wait();

                //var kkkk =  strValue.Result;
            }

            newStart.Stop();

            var error = newStart.ElapsedMilliseconds;
        }
    }
}
